package com.gao.hash;

/**
 * 服务器节点信息
 */
public class ServerNode {

    /** 节点 IP */
    public String host;

    /** 节点端口 */
    public int port;

    /** 负载边界 */
    public int loadBound;

    public ServerNode(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public ServerNode(String host, int port, int loadBound) {
        this(host, port);
        this.loadBound = loadBound;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getLoadBound() {
        return loadBound;
    }

    public void setLoadBound(int loadBound) {
        this.loadBound = loadBound;
    }
}
